
import axios from "@/utils/requset"

/**
 * 产品分类下品牌列表
 * @param data 
 * @param option 
 * @returns 
 */
export const getBrandListAPI = (data = {}, option = {}) => axios.get("/pro/categorybrandlist", {
  params: data,
  ...option
})

/**
 * 产品的分类列表
 * @param data 
 * @param option 
 * @returns 
 */
export const getCategoryListAPI = (data = {}, option = {}) => axios.get("/pro/categorylist", {
  params: data,
  ...option
})

/**
 * 搜索列表
 */
export const getProSearchAPI = (data = {}, option = {}) => axios.get("/pro/search", {
  params: data,
  ...option
})
/**
 * 热门搜索
 */
export const getHotProSearchAPI = (data: any = {}, option = {}) => axios.get("/pro/hotword" + data.proid, {
  params: data,
  ...option
})
/**
 * 获取产品的详情数据
 */
export const getDetailAPI = (data: any = {}, option = {}) => axios.get("/pro/detail/" + data.proid, { ...option })


/**
 * 获取商品分页列表数据
 */
export const getCategoryBrandProListAPI = (data = {}, option = {}) => axios.get("/pro/categorybrandprolist", {
  params: data,
  ...option
})

// 列表查询
/**
 * 获取商品分页列表数据
 */
export const getProListAPI = (data = {}, option = {}) => axios.get("/pro/list", {
  params: data,
  ...option
})
/**
 * 获取商品分页列表数据
 */
export const getRecommendListAPI = (data = {}, option = {}) => axios.get("/pro/recommendlist", {
  params: data,
  ...option
})
/**
 * 获取秒杀产品列表的数据
 */
export const getSeckillListAPI = (data = {}, option = {}) => axios.get("/pro/seckilllist", {
  params: data,
  ...option
})